import { request } from '@umijs/max';
export const getList = (
  data: API.Common_Request_Page,
): Promise<API.PageInfo<any>> => {
  return request('/admin/user/findList', {
    method: 'POST',
    data,
  });
};
export const submit = (data: { content: string }): Promise<null> => {
  return request('/admin/editor/submit', {
    method: 'POST',
    data,
  });
};
export const getContent = (): Promise<{ content: string }> => {
  return request('/admin/editor/getContent', {
    method: 'get',
  });
};
export const getAllList = (): Promise<any[]> => {
  return request('/admin/user/getList', {
    method: 'get',
  });
};
